package org.dromara.xyyw.domain.bo;

import org.dromara.xyyw.domain.XyywShopProductCommentLike;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 讨论点赞业务对象 xyyw_shop_product_comment_like
 *
 * @author yf
 * @date 2024-05-29
 */
@Data
@AutoMapper(target = XyywShopProductCommentLike.class, reverseConvertGenerate = false)
public class XyywShopProductCommentLikeBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 讨论点赞id
     */
    @NotNull(message = "讨论点赞id不能为空", groups = {EditGroup.class})
    private Integer discussionLikeId;

    /**
     * 讨论id
     */
    private Integer commentId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 是否点赞（0为未点赞，1为已点赞）
     */
    private String isLiked;

}
